#!/usr/bin/python
import os
from xml.etree import ElementTree

def main():
	with open('file.xml', 'rt') as f:
		tree = ElementTree.parse(f)
	for node in tree.iter('project'):
		url = node.attrib.get('local_path')
		print os.getcwd()
		os.chdir(url)
		os.system("touch khan.txt")
main()
